package cn.zhentao.service;

import cn.zhentao.borrow.dto.BorrowDto;
import cn.zhentao.borrow.dto.BorrowShow;
import cn.zhentao.borrow.dto.Sys_BrowListDto;
import cn.zhentao.borrow.param.BroCountParam;
import cn.zhentao.borrow.pojo.TBorrowing;
import cn.zhentao.common.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author EWEWW
* @description 针对表【t_borrowing】的数据库操作Service
* @createDate 2024-07-01 10:58:15
*/
public interface TBorrowingService extends IService<TBorrowing> {
    //借阅图书
    Result borrow_book(BorrowDto dto);
    //图书查询
    Result selusrbrolist(BorrowShow show);
    //归还图书
    Result book_back(BorrowDto dto);
    //统计图分析方法
    List<BroCountParam> brocountlist(Integer id);
    //用户预约
    Result yuyue(BorrowDto dto);
    //用户取消预约
    Result UnYuyue(BorrowDto dto);
    //提醒预约的用户
    Result Reser_title(Integer uid);
    //管理员端查询
    Page<TBorrowing> Sys_list(Sys_BrowListDto dto);


}
